/**
 * 
 */
package com.itinsys.enma.dao;

import java.util.List;

import net.sf.ehcache.ObjectExistsException;

import com.itinsys.enma.domain.Environment;
import com.itinsys.enma.domain.Resource;

/**
 * @author pferraz
 *
 */
public interface ResourceDAO {

	public Resource getById(int id) throws ObjectExistsException;

	public List<Resource> getAll();

	public boolean addResource(Resource resource);

	public boolean updateResourcel(Resource resource);

	public boolean deleteResource(Resource resource);

	public Resource getByDesc(String description);

	public List<Environment> getEnvironmentByResource(int id);
	
	
}
